Skip to content

Support multiple paths fallback in VaultBackend#70006

Merged
eladkal merged 9 commits into
apache:mainfrom
BasPH:vault-backend-multipath
Jul 25, 2026
Merged

Support multiple paths fallback in VaultBackend#70006
eladkal merged 9 commits into
apache:mainfrom
BasPH:vault-backend-multipath

Conversation

@BasPH

@BasPH BasPH commented Jul 17, 2026

Copy link
Copy Markdown
Contributor

#65493 introduced a global fallback for the VaultBackend. I suggest making this pattern more flexible by supporting a list of paths in the connections_path/variables_path/config_path. For example:

"connections_path": ["connections/prod", "connections/common", "connections/default"]

In this PR I choose to keep the kwargs names connections_path/variables_path/config_path instead of renaming to "paths" to avoid breaking changes. The PR does deprecate global_secrets_path. While that still exists, I decided to append it to all paths.

Multi-team is still supported, so e.g. with team="foobar" and "connections_path": ["connections/prod", "connections/common"], we'd check for the secret in connections/prod/foobar/{secret} and connections/common/foobar/{secret}.


Was generative AI tooling used to co-author this PR?
  • Yes (please specify the tool below)

Claude


  • Read the Pull Request Guidelines for more information. Note: commit author/co-author name and email in commits become permanently public when merged.
  • For fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
  • When adding dependency, check compliance with the ASF 3rd Party License Policy.
  • For significant user-facing changes create newsfragment: {pr_number}.significant.rst, in airflow-core/newsfragments. You can add this file in a follow-up commit after the PR is created so you know the PR number.

@eladkal eladkal left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM
might need @hussein-awala +1 as well

@hussein-awala hussein-awala left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since global_secrets_path is deprecated but not completely removed, could you add a test to ensure that there is no breaking change here?

@BasPH

BasPH commented Jul 22, 2026

Copy link
Copy Markdown
Contributor Author

Added test for that

@eladkal

eladkal commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

Doc build is failing

@hussein-awala hussein-awala left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, LGTM

@eladkal
eladkal merged commit cd7235a into apache:main Jul 25, 2026
79 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants